
FROM maven:3.8.3-openjdk-17 as builder


# Copy local code to the container image.
WORKDIR /app
COPY pom.xml .
COPY src ./src

RUN mvn package -DskipTests

# Run the web service on container startup.
CMD ["java","-jar","/app/target/TimaBank-1.0-SNAPSHOT.jar","--spring.profiles.active=prod"]

